import { createRouter, createWebHistory } from 'vue-router';
import Landlord from '@/components/Landlord.vue';
import Tenant from '@/components/Tenant.vue';
import Contract from '@/components/Contract.vue';
import MainPage from '@/components/MainPage.vue';

export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'MainPage',
      component: MainPage
    },
    {
      path: '/landlord',
      name: 'Landlord',
      component: Landlord
    },
    {
      path: '/tenant',
      name: 'Tenant',
      component: Tenant
    },
    {
      path: '/contract',
      name: 'Contract',
      component: Contract
    }
  ]
});
